//
//  JSMLeavingHotDetailsModel.m
//  TakeYouTourTogether
//
//  Created by dllo on 15/12/3.
//  Copyright © 2015年 king. All rights reserved.
//

#import "JSMLeavingHotDetailsModel.h"
#import "JSMLeavingHotDetailsContriesModel.h"
#import "JSMLeavingHotDetailsDaysModel.h"
@implementation JSMLeavingHotDetailsModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"covered_countries"]) {
        self.covered_countriesArr = [NSMutableArray array];
        self.covered_countriesArr = [JSMLeavingHotDetailsContriesModel baseModelByArr:value];
    } else if ([key isEqualToString:@"user"]) {
        self.useModel = [[JSMLeavingUserModel alloc] init];
        [self.useModel setValuesForKeysWithDictionary:value];
    } else if ([key isEqualToString:@"days"]) {
        self.daysMarr = [NSMutableArray array];
        self.daysMarr = [JSMLeavingHotDetailsDaysModel baseModelByArr:value];
    }
}

@end
